package com.sh.caryr.erp.entity;

import com.sh.caryr.erp.exception.ResultCode;
import lombok.Data;

import java.io.Serializable;

@Data
public class ResultMessage<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * Detailed response code
     */
    private ResultCode msgCode;

    private String msgDetail;

    private T data;

    public ResultMessage() {
        super();
    }

    public ResultMessage(T data) {
        super();
        this.data = data;
    }
}
